import { Component, OnInit } from '@angular/core';

interface List {
  id: number
  name: string
  age: number
}

@Component({
  selector: 'app-directive',
  templateUrl: './directive.component.html',
  styles: [
  ]
})
export class DirectiveComponent implements OnInit {
  data = [];
  list = [
    { id: 1, name: "张三", age: 20 },
    { id: 2, name: "李四", age: 30 }
  ]
  time : number = Date.now()
  a: number = 0.259;
  b: number = 1.3495;
  constructor() { }

  ngOnInit(): void {}

  identify(index: any, item: any){
    return item.id;
  }
}
